package com.example.springcloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * @Author weiHuang.zhu
 * @Date 15/4/2023 下午8:47
 */
@RestController
public class PaymentController {

    @Value("${server.port}")
    private String serverPort;

    @RequestMapping("/zookeeper")
    public String paymentZk(){
        return "springCloud with zookeeper:"+serverPort + "\t" + UUID.randomUUID().toString();
    }

}
